//
//  adc.h
//  smart_garbage_case
//
//  Created by fukai on 2018/10.
//  Copyright © 2018年 Cyber01. All rights reserved.
//

#ifndef adc_h
#define adc_h


typedef struct
{
	int front_infrared_ad;	//车前红外测距AD值
}AdcValueNode;





void AdcInit(void);	//adc初始化函数
unsigned int GetAdc(unsigned char ch);	//获得ADC值
unsigned int GetAdcAverage(unsigned char ch,unsigned char times);	//求取平均值
void GetAdcUse(void);//获取要使用的AD值

extern AdcValueNode AdcValue;







#endif


